﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EquipmentInfo.aspx.cs" Inherits="Page_AutoRun_EquipmentInfo" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <title>设备信息</title>
    <%--layui--%>
    <link href="../../layui/css/layui.css" rel="stylesheet" />
    <script src="../../layui/layui.js"></script>

    <script src="../../Scripts/jquery-1.8.0.min.js"></script>
    <script src="../../Scripts/jquery.form.js"></script>
    <script src="../../layui/ajaxfileupload.js"></script>
    <style>
        .right span {
            display: inline-block;
            width: 22px;
            height: 22px;
            margin-left: 5px;
            background: url("/images/star-no.png") no-repeat 0 0;
            background-size: 22px;
        }

        .right .star-icon {
            background: url("/Images/star-at.png") no-repeat 0 0;
            background-size: 22px;
        }
    </style>
</head>
<body>
    <%if (dtorderModel != null && dtorderModel.Rows.Count > 0)
        {%>
    <form class="layui-form" action="" id="AddForm" style="padding-right: 10px; padding-top: 10px;" enctype="multipart/form-data" method="post">

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">
                设备名称
            </label>
            <div class="layui-input-block">
                <input type="text" name="name" lay-verify="required" autocomplete="off" disabled class="layui-input" id="name" value="<%=dtorderModel.Rows[0]["ITEMNAME"]+"" %>" />
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">
                规格
            </label>
            <div class="layui-input-block">
                <input type="text" name="name" lay-verify="required" autocomplete="off" disabled class="layui-input" id="name" value="<%=dtorderModel.Rows[0]["ITEMSPEC"]+"" %>" />
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                类别
            </label>
            <div class="layui-input-block">
                <input type="text" name="title" lay-verify="required" autocomplete="off" disabled class="layui-input" id="title" value="<%=dtorderModel.Rows[0]["CODENAME"]+"" %>" />
            </div>
        </div>
        <div class="layui-form-item" style="margin-top: 15px;">
            <label class="layui-form-label">编码
            </label>
            <div class="layui-input-block">
                <input type="text" name="state" lay-verify="required" autocomplete="off" disabled class="layui-input" id="state" value="<%=dtorderModel.Rows[0]["FIXID"]+"" %>" />
            </div>
        </div>
        <div class="layui-form-item" style="margin-top: 15px;">
            <label class="layui-form-label">序列号
            </label>
            <div class="layui-input-block">
                <input type="text" name="state" lay-verify="required" autocomplete="off" disabled class="layui-input" id="state" value="<%=dtorderModel.Rows[0]["XULIEID"]+"" %>" />
            </div>
        </div>
        <div class="layui-form-item" style="margin-top: 15px;">
            <label class="layui-form-label">安装时间
            </label>
            <div class="layui-input-block">
                <input type="text" name="state" lay-verify="required" autocomplete="off" disabled class="layui-input" id="state" value="<%=Convert.ToDateTime(dtorderModel.Rows[0]["INSTALLATIONDATE"]+"").ToShortDateString() %>" />
            </div>
        </div>
        <div class="layui-form-item" >
            <label class="layui-form-label" style="width: 90px; padding-left:1px">下次检测时间
            </label>
            <div class="layui-input-block">
                <input type="text" name="state" lay-verify="required" autocomplete="off" disabled class="layui-input" id="state" value="<%=Convert.ToDateTime(dtorderModel.Rows[0]["NEXTDECETIONDATE"]+"").ToShortDateString() %>" />
            </div>
        </div>
        <div class="layui-form-item" style="margin-top: 15px;">
            <label class="layui-form-label">价格
            </label>
            <div class="layui-input-block">
                <input type="text" name="state" lay-verify="required" autocomplete="off" disabled class="layui-input" id="state" value="<%=Convert.ToDecimal(dtorderModel.Rows[0]["COSTPRICE"]+"").ToString("0.000")+"￥"  %>" />
            </div>
        </div>  
    </form>
    <% }
        else
        {%>
    <div class="no_record noneData" style="text-align: center; margin: 30px auto 10px;">
        <div>
            <img src="../../Images/no-data-icon.png" /><br>
            无设备记录
        </div>
    </div>
    <%} %>
</body>
</html>



